package com.nowcoder.community.mapper;

import com.nowcoder.community.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    User getById(@Param(value = "userId") int userId);

    User getByName(String username);

    User getByEmail(String email);

    int addUser(User user);

    int updateStatus(int userId, int status);

    int updateHeader(int userId, String headerUrl);

    int updatePassword(int userId, String password);

}
